package com.qriver.modules.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
	
	@Autowired
	private Consumer consumer;
	
	@Value("${test}")
	private String value;
	
	@GetMapping("/consumer")
	@ResponseBody
    public String dc() {
		System.out.println("config Test:" + value);
        return consumer.consumer();
    }
	@GetMapping("/qriver-core/test")
	@ResponseBody
    public String dc2() {
		System.out.println("/qriver-core/qriver/test");
        return consumer.consumer();
    }
	@GetMapping("/qriver-core/qriver/test3")
	@ResponseBody
    public String dc3() {
		System.out.println("/qriver-core/qriver/test3");
        return consumer.consumer();
    }
	@GetMapping("/qriver-core/qriver/test4")
	@ResponseBody
    public String dc4() {
		System.out.println("test4");
        return "dc4";
    }
	@GetMapping("/qriver-core/test5")
	@ResponseBody
    public String dc5() {
		System.out.println("test5");
        return "dc5";
    }
}
